# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from xadmin.views import *

# Create your models here
class webPost(models.Model):
    title = models.CharField(u"标题",max_length=150)
    body = models.TextField(u"内容")
    timestamp = models.DateTimeField(u"发布时间")

    def __str__(self):
        return self.title

    class Meta:
        verbose_name = u'常见问题'
        verbose_name_plural = verbose_name



#xadmin.site.register(webPost,webPostAdmin)